﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>十六进制转换为十进制</title>
    <script type="text/javascript" language="JavaScript">
        function change(sixteen){
            let ten = parseInt(sixteen,16);
            alert(ten);
        }
        
    </script>
</head>
<body>
<input id="Text1" type="text" /><input id="Button1" type="button" value="转换" onclick="change(Text1.value)" />
</body>
</html>